package com.yc.happ.entity;

import java.io.Serializable;

public class OrderItem implements Serializable{
	
    /**
	 * 
	 */
	private static final long serialVersionUID = -2135945527879464393L;
	private Integer aid;
	private Integer vid;
	private Integer eid;
	private String vname;
	private String euname;
	private Integer aduring;
	private String aatitude;
	private String aquality;
	private Integer ascore;
	private String adate;
	private Integer isFlag;
	private String vtype;
	
	
	public OrderItem() {
		
	}
	public OrderItem(Integer aid, Integer vid, Integer eid, String vname, String euname, Integer aduring,
			String aatitude, String aquality, Integer ascore, String adate, Integer isFlag, String vtype) {
		super();
		this.aid = aid;
		this.vid = vid;
		this.eid = eid;
		this.vname = vname;
		this.euname = euname;
		this.aduring = aduring;
		this.aatitude = aatitude;
		this.aquality = aquality;
		this.ascore = ascore;
		this.adate = adate;
		this.isFlag = isFlag;
		this.vtype = vtype;
	}
	public Integer getAid() {
		return aid;
	}
	public void setAid(Integer aid) {
		this.aid = aid;
	}
	public Integer getVid() {
		return vid;
	}
	public void setVid(Integer vid) {
		this.vid = vid;
	}
	public Integer getEid() {
		return eid;
	}
	public void setEid(Integer i) {
		this.eid = i;
	}
	public String getVname() {
		return vname;
	}
	public void setVname(String vname) {
		this.vname = vname;
	}
	public String getEuname() {
		return euname;
	}
	public void setEuname(String euname) {
		this.euname = euname;
	}
	public Integer getAduring() {
		return aduring;
	}
	public void setAduring(Integer aduring) {
		this.aduring = aduring;
	}
	public String getAatitude() {
		return aatitude;
	}
	public void setAatitude(String aatitude) {
		this.aatitude = aatitude;
	}
	public String getAquality() {
		return aquality;
	}
	public void setAquality(String aquality) {
		this.aquality = aquality;
	}
	public Integer getAscore() {
		return ascore;
	}
	public void setAscore(Integer ascore) {
		this.ascore = ascore;
	}
	public String getAdate() {
		return adate;
	}
	public void setAdate(String adate) {
		this.adate = adate;
	}
	public Integer getIsFlag() {
		return isFlag;
	}
	public void setIsFlag(Integer isFlag) {
		this.isFlag = isFlag;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((aatitude == null) ? 0 : aatitude.hashCode());
		result = prime * result + ((adate == null) ? 0 : adate.hashCode());
		result = prime * result + ((aduring == null) ? 0 : aduring.hashCode());
		result = prime * result + ((aid == null) ? 0 : aid.hashCode());
		result = prime * result + ((aquality == null) ? 0 : aquality.hashCode());
		result = prime * result + ((ascore == null) ? 0 : ascore.hashCode());
		result = prime * result + ((eid == null) ? 0 : eid.hashCode());
		result = prime * result + ((euname == null) ? 0 : euname.hashCode());
		result = prime * result + ((isFlag == null) ? 0 : isFlag.hashCode());
		result = prime * result + ((vid == null) ? 0 : vid.hashCode());
		result = prime * result + ((vname == null) ? 0 : vname.hashCode());
		result = prime * result + ((vtype == null) ? 0 : vtype.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		OrderItem other = (OrderItem) obj;
		if (aatitude == null) {
			if (other.aatitude != null)
				return false;
		} else if (!aatitude.equals(other.aatitude))
			return false;
		if (adate == null) {
			if (other.adate != null)
				return false;
		} else if (!adate.equals(other.adate))
			return false;
		if (aduring == null) {
			if (other.aduring != null)
				return false;
		} else if (!aduring.equals(other.aduring))
			return false;
		if (aid == null) {
			if (other.aid != null)
				return false;
		} else if (!aid.equals(other.aid))
			return false;
		if (aquality == null) {
			if (other.aquality != null)
				return false;
		} else if (!aquality.equals(other.aquality))
			return false;
		if (ascore == null) {
			if (other.ascore != null)
				return false;
		} else if (!ascore.equals(other.ascore))
			return false;
		if (eid == null) {
			if (other.eid != null)
				return false;
		} else if (!eid.equals(other.eid))
			return false;
		if (euname == null) {
			if (other.euname != null)
				return false;
		} else if (!euname.equals(other.euname))
			return false;
		if (isFlag == null) {
			if (other.isFlag != null)
				return false;
		} else if (!isFlag.equals(other.isFlag))
			return false;
		if (vid == null) {
			if (other.vid != null)
				return false;
		} else if (!vid.equals(other.vid))
			return false;
		if (vname == null) {
			if (other.vname != null)
				return false;
		} else if (!vname.equals(other.vname))
			return false;
		if (vtype == null) {
			if (other.vtype != null)
				return false;
		} else if (!vtype.equals(other.vtype))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "OrderItem [aid=" + aid + ", vid=" + vid + ", eid=" + eid + ", vname=" + vname + ", euname=" + euname
				+ ", aduring=" + aduring + ", aatitude=" + aatitude + ", aquality=" + aquality + ", ascore=" + ascore
				+ ", adate=" + adate + ", isFlag=" + isFlag + ", vtype=" + vtype + "]";
	}
	public String getVtype() {
		return vtype;
	}
	public void setVtype(String vtype) {
		this.vtype = vtype;
	}
	
}
